
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <link href="__STATIC__/customize/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/customize/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__STATIC__/customize/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/customize/css/v3.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/customize/css/common_v3.css?v=2.0.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__STATIC__/customize/fonts/v3/iconfont.css?v=2016070717">
    <link rel="stylesheet" type="text/css" href="__STATIC__/customize/fonts/iconfont.css?v=2016070717">


    <script src="__STATIC__/customize/js/jquery/jquery-1.11.1.min.js"></script>
    <script src="__STATIC__/customize/js/jquery/jquery.gcjs.js"></script>
    <script src="__STATIC__/customize/js/util.js"></script>


    <script type="text/javascript">
        var webuploaderEJ = "{:url('mainAdmin/attachment/webUploadByEdit')}",
            fetchByEditJ =  "{:url('mainAdmin/attachment/fetchWebImg','',false)}",
            webUploadByManagerJ = "{:url('mainAdmin/attachment/webUploadByManager','',false)}",
            diyUrlJ =  "{:url('diyFun','',false)}",
            previewUrlJ = "{:url('preview')}",
            sys_model_shop_fightgroup = "{$sys_model_shop_fightgroup}";
    </script>

    <script src="__STATIC__/customize/js/require.js"></script>
    <script src="__STATIC__/customize/js/config1.0.js"></script>
    <script>
        require.config({
            waitSeconds: 0
        });
    </script>
    <script src="__STATIC__/customize/js/myconfig.js"></script>

    <script type="text/javascript">
        if (navigator.appName == 'Microsoft Internet Explorer') {
            if (navigator.userAgent.indexOf("MSIE 5.0") > 0 || navigator.userAgent.indexOf("MSIE 6.0") > 0 || navigator.userAgent.indexOf("MSIE 7.0") > 0) {
                alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
            }
        }
        myrequire.path = "/static/js/";

        function preview_html(txt)
        {
            var win = window.open("", "win", "width=300,height=600"); // a window object
            win.document.open("text/html", "replace");
            win.document.write($(txt).val());
            win.document.close();
        }
    </script>
</head>

<body>


<div class="wb-container right-panel">

    <link href="__STATIC__/customize/diypage/css/web.css?v=201609291000" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/customize/diypage/css/diy.min.css?v=201609291000" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/customize/diypage/css/foxui.diy.css?v=201612141111" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">

    <div class="page-content">
        <div class="row relative w950">
            <div class="diy-phone" data-merch="0">
                <div class="phone-head"></div>
                <div class="phone-body">
                    <div class="phone-title" id="page" >loading...</div>
                    <div class="phone-main" id="phone">
                        <p style="text-align: center; line-height: 400px">您还没有添加任何元素</p>
                    </div>
                </div>
                <div class="phone-foot"></div>
            </div>

            <div class="diy-editor form-horizontal" id="diy-editor">
                <div class="editor-arrow"></div>
                <div class="inner"></div>
            </div>


            <div class="diy-menu">
                <div class="navs" id="navs"></div>
                <div class="action">
                    <nav class="btn btn-default btn-sm" style="float: left; display: none" id="gotop"><i class="icon icon-top" style="font-size: 12px"></i> 返回顶部</nav>
                    <nav class="btn btn-warning btn-sm btn-save hide" data-type="savetemp">另存为模板</nav>
                    <nav class="btn btn-primary btn-sm btn-save" data-type="save">保存页面</nav>
                    <nav class="btn btn-success btn-sm btn-save " data-type="preview">保存并预览</nav>
                </div>
            </div>
        </div>

        {include file="shop@sys_admin/edit_pageb/plugin" /}
    </div>

    <script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="__STATIC__/js/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script language="javascript">
        var path = '../diypage/js/diy.min';
        myrequire([path,'tpl','web/biz'],function(modal,tpl){
            modal.init({
                tpl: tpl,
                attachurl: "/",
                id: '{$id}',
                type: 2,
                data: {$data|json_encode|raw},
                diymenu: [{"id":"{$id}","name":"{$name}"}],
                diyadvs: [],
                levels: null,
                merch: 0,
                plugins: {"creditshop":1,"merch":1,"seckill":0,"exchange":1},
                shopset: {"logo":"{:settings('logo')}"}
            });
        });
        function selectUrlCallback(href){
            var ue =  UE.getEditor('rich');
            if(href){
                ue.execCommand('link', {href: href, 'data-nocache': 'true'});
            }
        }
        function callbackGoods(data) {
            myrequire([path],function(modal) {
                modal.callbackGoods(data);
            });
        }
        function callbackCategory (data) {
            myrequire([path],function(modal) {
                modal.callbackCategory(data);
            });
        }
        function callbackGroup (data) {
            myrequire([path],function(modal) {
                modal.callbackGroup(data);
            });
        }
        function callbackMerch (data) {
            myrequire([path],function(modal) {
                modal.callbackMerch(data);
            });
        }
        function callbackMerchCategory (data) {
            myrequire([path],function(modal) {
                modal.callbackMerchCategory(data);
            });
        }
        function callbackMerchGroup (data) {
            myrequire([path],function(modal) {
                modal.callbackMerchGroup(data);
            });
        }
        function callbackSeckill (data) {
            myrequire([path],function(modal) {
                modal.callbackSeckill(data);
            });
        }
        function callbackCoupon (data) {
            myrequire([path],function(modal) {
                modal.callbackCoupon(data);
            });
        }
    </script>

    <div id="page-loading">
        <div class="page-loading-inner">
            <div class="sk-three-bounce">
                <div class="sk-child sk-bounce1"></div>
                <div class="sk-child sk-bounce2"></div>
                <div class="sk-child sk-bounce3"></div>
            </div>
        </div>
    </div>


</div>




<script language='javascript'>
    require(['bootstrap'], function ($) {
        $('[data-toggle="tooltip"]').tooltip("destroy").tooltip({
            container: $(document.body)
        });
        $('[data-toggle="popover"]').popover("destroy").popover({
            container: $(document.body)
        });
    });



    $(function () {
        //$('.page-content').show();
        $('.img-thumbnail').each(function () {
            if ($(this).attr('src').indexOf('nopic.jpg') != -1) {
                $(this).attr('src', "__STATIC__/customize/images/nopic.jpg");
            }
        })
    });
</script>
<script language="javascript">
    myrequire(['web/init']);
    if( $('form.form-validate').length<=0){
        window.formInited = true;
    }
    window.formInitTimer = setInterval(function () {
        if (typeof(window.formInited ) !== 'undefined') {
            $('#page-loading').remove();
            clearInterval(window.formInitTimer);
        }else{
            //$('#page-loading').show();
        }
    }, 1);
</script>


</body>
</html>
